import http from "./request";

export default {
  //  /search/searchCategoryInfo查询单个化合物
  searchCategoryInfo(data) {
    return http.get(`/search/searchCategoryInfo`, { params: data });
  },
  //  /search/batchSearchCategoryInfo批量查询
  batchSearchCategoryInfo(data) {
    return http.get(`/search/batchSearchCategoryInfo`, { params: data });
  },
  //  /search/batchSearchCategoryInfoByFile批量查询文件 文件只支持txt,xls,xlsx文件 txt文件以,分割，xls，xlsx文件读取第一列
  batchSearchCategoryInfoByFile(data) {
    return http.post(`/search/batchSearchCategoryInfoByFile`, data);
  },

  // 结果页

  // /search/searchCompoundById根据id查询化合物信息
  searchCompoundById(data) {
    return http.get(`/search/searchCompoundById`, { params: data });
  },
  // /search/searchToxicity根据化合物id和毒性大类id查询该化合物毒性信息
  searchToxicity(data) {
    return http.get(`/search/searchToxicity`, { params: data });
  },
  // /search/searchFeature根据化合物id和毒性大类id查询该化合物特征信息
  searchFeature(data) {
    return http.get(`/search/searchFeature`, { params: data });
  },
  // /search/getFeatureBigCategory详情页获取特征大类
  getFeatureBigCategory(data) {
    return http.get(`/search/getFeatureBigCategory`, { params: data });
  },
  // /search/getFeatureBigCategory详情页获取特征大类
  getToxicityBigCategory(data) {
    return http.get(`/search/getToxicityBigCategory`, { params: data });
  },

};
